<?php

global $project;
$project = 'mysite';

require_once 'conf/ConfigureFromEnv.php';

MySQLDatabase::set_connection_charset('utf8');

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.org/themes/
SSViewer::set_theme('blackcandy');

// Set the site locale
i18n::set_locale('en_US');

// enable nested URLs for this site (e.g. page/sub-page/)
SiteTree::enable_nested_urls();

// configure blog
BlogEntry::$allow_wysiwyg_editing = true;

// some optional changes to core blog functionality
BlogExtensions::$enable_blog_categories = true;
BlogExtensions::$enable_members_as_authors = true;
Object::add_extension('BlogEntry', 'BlogExtensions');

// required for author profile pages
Object::add_extension('Member', 'BlogMemberExtensions');

// required for frontend stuff such as listing all posts in a category
Object::add_extension('BlogTree_Controller', 'BlogTreeExtensions');

